//
//  JAFCalender.h
//  JAFDemo
//
//  Created by 阿飞 on 2018/1/24.
//  Copyright © 2018年 阿飞. All rights reserved.
//

#import <UIKit/UIKit.h>
typedef NS_ENUM(NSInteger, SearchType) {
    SearchTypeDate,  //日期
    SearchTypeMonth,   //月份
};
typedef void (^SelectBlock) (NSInteger year ,NSInteger month ,NSInteger day);

@interface JAFCalender : UIView
-(instancetype)initWithFrame:(CGRect)frame withSearch:(SearchType)type withLeftTitle:(NSString *)leftTitle withRightTitle:(NSString *)rightTitle;

@property(nonatomic,assign)SearchType searchType;

@property(nonatomic,strong)UIViewController *viewController;
/*
 * 当前月的title颜色
 */
@property(nonatomic,strong)UIColor *currentMonthTitleColor;
/*
 * 上月的title颜色
 */
@property(nonatomic,strong)UIColor *lastMonthTitleColor;
/*
 * 下月的title颜色
 */
@property(nonatomic,strong)UIColor *nextMonthTitleColor;

/*
 * 选中的背景颜色
 */
@property(nonatomic,strong)UIColor *selectBackColor;

/*
 * 今日的title颜色
 */
@property(nonatomic,strong)UIColor *todayTitleColor;

/*
 * 选中的是否动画效果
 */
@property(nonatomic,assign)BOOL     isHaveAnimation;
/*
 * 是否禁止手势滚动
 */
@property(nonatomic,assign)BOOL     isCanScroll;

/*
 * 是否显示上月，下月的按钮
 */
@property(nonatomic,assign)BOOL     isShowLastAndNextBtn;

/*
 * 是否显示上月，下月的的数据
 */
@property(nonatomic,assign)BOOL     isShowLastAndNextDate;

@property(nonatomic,strong) NSMutableArray  *totalDaysArray;
/*
 * 在配置好上面的属性之后执行
 */
-(void)dealData;
//选中的回调
@property(nonatomic,copy)SelectBlock selectBlock;


@property(nonatomic,assign)BOOL isButtonClick;

@end
